<%@ Page Language="c#" CodeBehind="EditProperty.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_Article.UI.ArticlePropertyEdit" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" />
        <asp:Panel ID="pnlBlog" runat="server" DefaultButton="btnSave" CssClass="art-Post-inner panelwrapper admin blogcategoryedit">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true"
                UseLowerCaseArtisteerClasses="true" />
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                    <fieldset>
                        <legend>
                            <asp:Label ID="lblTitle" CssClass="moduletitle" runat="server" />
                        </legend>
                        <asp:UpdatePanel runat="server" ID="upGrid" UpdateMode="Conditional">
                            <ContentTemplate>
                                <mp:mojoGridView ID="gvItems" runat="server" AutoGenerateColumns="false" AllowPaging="true"
                                    CssClass="gridviewadmin">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrName" runat="server" Text='<%# Eval("Property") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrUnit" runat="server" Text='<%# Eval("Unit") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="ibtnDown" runat="server" ImageUrl='<%# Path + "collapse.gif" %>'
                                                    CommandName="Down" CommandArgument='<%# Eval("Guid") %>' ToolTip='<%# Resources.ArticleResources.Decrease %>'
                                                    CausesValidation="false" />
                                                <asp:Literal ID="ltrOrder" runat="server" Text='<%# Eval("OrderNumber") %>' />
                                                <asp:ImageButton ID="ibtnUp" runat="server" ImageUrl='<%# Path + "expand.gif" %>'
                                                    CommandName="Up" CommandArgument='<%# Eval("Guid") %>' ToolTip='<%# Resources.ArticleResources.Increase %>'
                                                    CausesValidation="false" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="ibtnEdit" runat="server" ImageUrl='<%# Path + EditContentImage %>'
                                                    CommandName="EditItem" CommandArgument='<%# Eval("Guid") %>' ToolTip='<%# Resources.ArticleResources.EditImageAltText %>'
                                                    CausesValidation="false" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="ibtnDelete" runat="server" ImageUrl='<%# Path + DeleteLinkImage %>'
                                                    CommandName="DeleteItem" CommandArgument='<%# Eval("Guid") %>' ToolTip='<%# Resources.ArticleResources.DeleteImageAltText %>'
                                                    CausesValidation="false" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Literal ID="ltrEmpty" runat="server" Text='<%# Resources.ArticleResources.EmptyGridView %>' />
                                    </EmptyDataTemplate>
                                </mp:mojoGridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <div class="settingrow">
                            <mp:SiteLabel ID="slProperty" runat="server" ForControl="txtProperty" CssClass="settinglabel"
                                ConfigKey="NewPropertyLabel" ResourceFile="ArticleResources"></mp:SiteLabel>
                            <asp:TextBox ID="txtProperty" runat="server" MaxLength="255" CssClass="widetextbox"></asp:TextBox>
                            <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txtProperty" ID="rfvNewCategoryName"
                                ValidationGroup="Property" runat="server" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="slUnit" runat="server" ForControl="txtUnit" CssClass="settinglabel"
                                ConfigKey="NewUnitLabel" ResourceFile="ArticleResources"></mp:SiteLabel>
                            <asp:TextBox ID="txtUnit" runat="server" MaxLength="255" CssClass="widetextbox"></asp:TextBox>
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="slOrderNumber" runat="server" ForControl="txtOrderNumber" CssClass="settinglabel"
                                ConfigKey="OrderNumber" ResourceFile="ArticleResources"></mp:SiteLabel>
                            <asp:TextBox ID="txtOrderNumber" runat="server" MaxLength="255" CssClass="widetextbox"></asp:TextBox>
                        </div>
                        <div class="settingrow">
                            <portal:mojoButton ID="btnSave" runat="server" ValidationGroup="Property" />
                            <portal:mojoButton ID="btnBack" runat="server" CausesValidation="false" />
                        </div>
                    </fieldset>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
